/*
 * @Descripttion: 
 * @version: 1.0
 * @Author: Ankang
 * @Date: 2021-06-08 22:14:38
 * @LastEditors: Ankang
 * @LastEditTime: 2021-06-09 10:29:44
 */
import Vue from 'vue'

Vue.filter('img', (url) => {
  return url.replace(/https\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&amp;%\$#_]*)?/,"https://images.weserv.nl/?url=https://a.zdmimg.com/202106/03/60b838e0d7a7a100.jpg_e600.jpg'");
})

/* 
<img itemprop="image" 
alt="开放三胎？我采访了一对二胎夫妻，然后哈哈哈哈哈哈哈……" 
src="https://a.zdmimg.com/202106/03/60b838e0d7a7a100.jpg_e600.jpg" 
src1="https://a.zdmimg.com/202106/03/60b838e0d7a7a100.jpg_e600.jpg" 
src2="https://a.zdmimg.com/202106/03/60b838e0d7a7a100.jpg_e600.jpg" 
title=""> 
*/

// Vue.filter('wh', (url, wh) => {
//   return url.replace(/w\.h/, wh)
// })